﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="ReportUT519.aspx.vb" Inherits="RWN.ReportUT519" UICulture="th-TH" Culture="th-TH" %>
<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary" TagPrefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript">

	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
		รายงานเกี่ยวกับการแก้ไขข้อมูลพนักงาน filed ที่สำคัญ</div>
	<div>
		<hr />
	</div>
	<div>
		<table>
			<tr>
				<td>
					ตั้งแต่วันที่แก้ไข:
				</td>
				<td>
				    <asp:TextBox ID="StartDateFrom" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnStartDateFrom" runat="server" ImageUrl="~/images/Calendar.gif" />
			        <asp:CalendarExtender ID="StartDateFrom_CalendarExtender" runat="server" 
				        CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				        PopupButtonID="ibtnStartDateFrom" TargetControlID="StartDateFrom">
			        </asp:CalendarExtender>	
                </td>
				<td>
					ถึงวันที่แก้ไข:
				</td>
				<td>
				    <asp:TextBox ID="StartDateTo" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnStartDateTo" runat="server" ImageUrl="~/images/Calendar.gif" />
			        <asp:CalendarExtender ID="StartDateTo_CalendarExtender" runat="server" 
				        CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				        PopupButtonID="ibtnStartDateTo" TargetControlID="StartDateTo">
			        </asp:CalendarExtender>			
                </td>
			</tr>
			<tr>
				<td>
					หมายเลขนักธุรกิจ:
				</td>
				<td>
					<uc1:ucPopupOfficer ID="ucPopupOfficer1" runat="server" />
				</td>
				<td>
					เบอร์โทร success: </td>
				<td>
					<asp:TextBox ID="txtTelSuccess" runat="server" Width="200px"></asp:TextBox>
                </td>
			</tr>
			<tr>
				<td>
					ชื่อ-นามสกุล<br />
                    ผู้ใช้งานที่แก้ไข:</td>
				<td>
					<asp:TextBox ID="txtOfficerName" runat="server" Width="250px"></asp:TextBox>
				</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
			</tr>
			<tr>
				<td colspan="4">
					<asp:Button ID="btnSearch" runat="server" Text="ค้นหา" 
						ValidationGroup="valid" />
					&nbsp;<asp:Button ID="btnReset" runat="server" Text="ตั้งค่าใหม่" />
					&nbsp;<asp:Button ID="btnExcel" runat="server" Text="Excel File" />
				</td>
			</tr>
		</table>
	</div>
	<div>
			<asp:GridView ID="gvList" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" PageSize="20" Width="100%">
				<AlternatingRowStyle BackColor="White" />
			<Columns>
				<asp:BoundField DataField="UPD_DATE" HeaderText="วันที่แก้ไข" DataFormatString="{0:dd/MM/yyyy}" >
                <HeaderStyle Width="5%" /></asp:BoundField>
				<asp:BoundField DataField="OFFICER_APP_ID" HeaderText="หมายเลขนักธุรกิจ" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
				<asp:BoundField DataField="OFFICER_BANK_ACCOUNT_CODE" HeaderText="เลขที่บัญชี" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                <asp:BoundField DataField="OFFICER_BANK_ACCOUNT_NAME" HeaderText="ชื่อบัญชี" ></asp:BoundField>
                <asp:BoundField DataField="OFFICER_STATUS" HeaderText="สถานะ" ></asp:BoundField>
                <asp:BoundField DataField="OFFCIER_APP_TEL" HeaderText="เบอร์โทร success" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                <asp:BoundField DataField="OFFICER_CARD_NO" HeaderText="บัตรประชาชน" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                <asp:BoundField DataField="SPONSER_NAME" HeaderText="Sponsor" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                <asp:BoundField DataField="UPLINE_NAME" HeaderText="Upline" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                <asp:BoundField DataField="OFFICER_UPLINE_SIDE" HeaderText="Side" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                <asp:BoundField DataField="UPDATE_NAME" HeaderText="ผู้ใช้งานที่แก้ไข" ></asp:BoundField>
			</Columns>
		    <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		    <RowStyle Height="20px" />
		</asp:GridView>
	</div>

	<!-- ไว้เป็น Template สำหรับออก excel -->
	</asp:Content>
